package cn.ligoo.part.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.part.dao.VenderInfoDao;
import cn.ligoo.part.domain.VenderInfo;
import cn.ligoo.part.service.VenderInfoService;

/**
 * @author Jin,QingHua
 * @version 2013-10-23 13:11:20
 */
@Service
public class VenderInfoServiceImpl implements VenderInfoService {

	@Resource
	private VenderInfoDao venderInfoDao;

	@Override
	public Long createVenderInfo(VenderInfo t) {
		this.venderInfoDao.insertEntity(t);
		return t.getId(); // ע��MyBatis��insert��iBATIS��ͬ��
	}

	@Override
	public int modifyVenderInfo(VenderInfo t) {
		return this.venderInfoDao.updateEntity(t);
	}

	@Override
	public int removeVenderInfo(VenderInfo t) {
		return this.venderInfoDao.deleteEntity(t);
	}

	@Override
	public VenderInfo getVenderInfo(VenderInfo t) {
		return this.venderInfoDao.selectEntity(t);
	}

	@Override
	public Long getVenderInfoCount(VenderInfo t) {
		return this.venderInfoDao.selectEntityCount(t);
	}

	@Override
	public List<VenderInfo> getVenderInfoList(VenderInfo t) {
		return this.venderInfoDao.selectEntityList(t);
	}

}
